<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<div class="right_content">
	<h2>User Settings</h2>
	<s:if test="%{#request.error != null}">
		<div style="color: #f00;"> <s:property value="#request.error" /> </div>
		<br/>
	</s:if>
	
	<table width="818" id="rounded-corner" summary="2007 Major IT Companies' Profit">
		<tbody>
			<tr>
				<td width="810"><table id="rounded-corner2"
						summary="2007 Major IT Companies' Profit">
						<thead>
							<tr>
								<th width="44" class="rounded" scope="col">N.O</th>
								<th width="155" class="rounded" scope="col">Name</th>
								<th width="236" class="rounded" scope="col">Email</th>
								<th width="77" class="rounded" scope="col">Phone</th>
								<th width="98" class="rounded" scope="col">Rights</th>
								<th width="67" class="rounded" scope="col">Active</th>
								<th width="61" class="rounded" scope="col">Edit</th>
								<th width="54" class="rounded-q4" scope="col">Delete</th>
							</tr>
						</thead>

						<tbody style="text-align: center">
							<s:iterator status="userProfile" value="#request.userProfiles">
								<tr>
									<td><s:property value="#userProfile.index" /></td>
									<td><s:property value="getLastName()" /></td>
									<td><s:property value="getEmail()" /></td>
									<td><s:property value="getPhoneNumber()" /></td>
									<td><s:property value="getRoleses().iterator().next().getRole()" /></td>
									<td>
										<s:if test="%{getEnable() == true}">
											<input type="checkbox" checked="checked" disabled="disabled" />
										</s:if> 
										<s:else>
											<input type="checkbox" disabled="disabled" />
										</s:else>
									</td>
									<td><a href="<s:url action="userlist"> <s:param name="action">edit</s:param><s:param name="email" value="getEmail()" /></s:url>"><img src="<s:url value="/css/admin/images/user_edit.png"/>" alt="" title="" border="0" /></a></td>
									<td><a href="#" class="ask"><img src="<s:url value="/css/admin/images/trash.png"/>" alt="<s:property value="getIduser()" />"
											title="" border="0" onclick="confirmDelete('/userlist?action=delete&id=' + this.alt)" /></a></td>
								</tr>
							</s:iterator>
						</tbody>
					</table></td>
			</tr>
		</tbody>
	</table>
	<div class="pagination">
		<span class="disabled"><< prev</span> <span class="current">1</span>
		<!--<a href="">2</a>
		<a href="">3</a>
		<a href="">4</a>
		<a href="">5</a>
		...
		<a href="">10</a>
		<a href="">11</a>
		<a href="">12</a>
		...
		<a href="">100</a>
		<a href="">101</a> 
		<a href="">next >></a>-->
		<span class="disabled">next >></span>
	</div>
	<h2>&nbsp;</h2>
	<table width="850">
		<tr>
			<td width="484">&nbsp;</td>
		</tr>
	</table>

</div>